/**
 * Candidate number: 35834
 */
package tv.starfu.components.level;

import com.artemis.Component;

public class Cell extends Component {
    public boolean on = false;
    public boolean off = true;
    public int what;
    
    /* ~§~ I can implement other states...what is your desire? ~§~  */   

    public Cell() {
        
    }
    
    public Cell(int c) {
        what = c;
    }

    public void turnOff() {
        off = true;
        on  = false;
    }
    
    public void turnOn() {
        on  = true;
        off = false;
    }
    
    public void toggle() {
        if(on)  { on  = false; off = true; }
        if(off) { off = false; on  = true; }
    }

    public boolean isOn() {
        return on;
    }
    
    public boolean isOff() {
        return off;
    }

    
}
